package com.kun;

import redis.clients.jedis.Jedis;

public class JedisUtils {

    public static Jedis getJedis() {
        Jedis jedis = new Jedis("47.122.113.100", 6379);
        return jedis;
    }

    public static void closeJedis(Jedis jedis) {
        if (jedis!= null) {
            jedis.close();
        }
    }
}
